#!/bin/bash
echo `date`
echo 'loading...'
pid=`pidof swoole_server`
# echo $pid
kill -USR1 $pid
# if [ $? -ne 0 ]; then
#     echo "failed"     
#     #判断上个命令是否执行
# else
#     echo "succeed"
# fi
echo 'loading success'
#重启所有worker进程
#kill -USR1 主进程PID
#仅重启task进程
#kill -USR2 主进程PID
